package com.company.practice;



//初始化执行step
public class B {

    static {
        System.out.println("B with static ");
    }

    {
        System.out.println("B with code block");
    }

    public B(){
        System.out.println("B with construct");
    }



}

class A extends B {

    static {
        System.out.println("A with static");
    }

    {
        System.out.println("A with code block");
    }

    public A(){
        System.out.println("A with construct");
    }

    public static void main(String[] args) {
        new A();
        System.out.println(Integer.toBinaryString(100));

    }
}